LassoScript Utility
Basics Browse Detail

[Net->SetEncoding]

Tag Link [Net->SetEncoding] Category Networking
Type Member Source Available Yes
Support Preferred Version 8.5
Change New Data Source Any
Output Type None Security None
Implementation Sets Lasso 8.5

Description

[Net->SetEncoding] sets the character set which will be used to automatically encode data that is read from the network using [Net->ReadString] or written to the network using [Net->Write].

Syntax

[Var: 'myConnection' = (Net: 'www.example.com', 80)]
[$myConnection->(SetEncoding: 'iso-8859-1')]
[$myConnection->(Write: 'GET / HTTP/1.0\r\n')]
[$myConnection->(Write: '\r\n')]
[$myConnection->(ReadString: 32768)]

Parameters

Required Parameters
Character set The character set which should be used to automatically translate strings passed to [Net->Write] and read from [Net->ReadString].

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.